import request from '@/utils/request'

// 查询相亲圈列表
export function listXqq(query) {
  return request({
    url: '/com/xqq/list',
    method: 'get',
    params: query
  })
}
// 查询相亲圈列表
export function getfenlei() {
  return request({
    url: '/com/xqqType/list2',
    method: 'get'
  })
}


// 查询相亲圈详细
export function getXqq(id) {
  return request({
    url: '/com/xqq/' + id,
    method: 'get'
  })
}

// 新增相亲圈
export function addXqq(data) {
  return request({
    url: '/com/xqq',
    method: 'post',
    data: data
  })
}

// 修改相亲圈
export function updateXqq(data) {
  return request({
    url: '/com/xqq',
    method: 'put',
    data: data
  })
}

// 删除相亲圈
export function delXqq(id) {
  return request({
    url: '/com/xqq/' + id,
    method: 'delete'
  })
}

// 导出相亲圈
export function exportXqq(query) {
  return request({
    url: '/com/xqq/export',
    method: 'get',
    params: query
  })
}
